package cn.shenshen.shop.fegin;

import cn.shenshen.shop.domain.Good;
import cn.shenshen.shop.service.IGoodService;
import cn.shenshen.shop.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GoodFeignClient implements GoodFeignApi{
    @Autowired
    private IGoodService goodService;

    public Result<List<Good>> queryByIds(List<Long> ids) {
        List<Good> goods = goodService.queryByIds(ids);
        return Result.success(goods);
    }
}
